package com.itheima.Tree;

/**
 * @Author: Ethan Yankang
 * @Program: code-random-recordings
 * @Date: 2024-08-02 20:08
 **/
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;
//    TreeNode(int val){
//        this.val=val;
//    }
//
//    TreeNode(int val,TreeNode left,TreeNode right){
//        this.val=val;
//
//    }

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
